package com.mtsmda.designPattern1.creational.abstract_factory;

public class ContinentFactory extends AbstractFactory {

	@Override
	public Continent getContinent(String content) {
		if (content == null || content.isEmpty()) {
			return null;
		}

		switch (content) {
		case Continent.EUROPA: {
			return new Europa();
		}
		case Continent.AFRICA: {
			return new Africa();
		}
		case Continent.AZIYA: {
			return new Aziya();
		}
		}

		return null;
	}

	@Override
	public Country getCountry(String country) {
		return null;
	}

}